﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcApplication1.Models;
using MvcApplication1.Services;

namespace MvcApplication1.Models
{
    public class AttackRepository
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public static List<TestUsers> GetTestUser(string username, string password)
        {
            List<TestUsers> lUsers = new List<TestUsers>();
            try
            {
                using (vulnerability_dbDataContext context = new vulnerability_dbDataContext())
                {
                    try
                    {

                    }
                    catch (Exception ex)
                    {
                    }
                };
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
            return lUsers;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public static List<get_dummy_userResult> GetDummyUser(string username, string password)
        {
            List<get_dummy_userResult> lUser = new List<get_dummy_userResult>();
            try
            {
                using (vulnerability_dbDataContext context = new Services.vulnerability_dbDataContext())
                {
                    var result = context.get_dummy_user(username, password);
                    lUser = result.ToList();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

            return lUser;
        }
    }
}